{% extends 'base.html' %}
{% from 'bootstrap/pagination.html' import render_pagination %}

{% block title %}主页{% endblock %}

{% block content %}
    <div class="page-header">
        <h1 class="display-4">{{ admin.blog_title|default('博客标题') }}</h1>
        <h4 class="text-muted">&nbsp;{{ admin.blog_sub_title|default('博客副标题') }}</h4>
    </div>
    <hr/>
    <div class="row">
        <div class="col-sm-8">
            {% include 'blog/_posts.html' %}
            {% if posts %}
                <div class="page-footer">{{ render_pagination(pagination) }}</div>
            {% endif %}
        </div>
        <div class="col-sm-4 sidebar">
            {% include 'blog/_sidebar.html' %}
        </div>
    </div>
{% endblock %}
